home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / patchlib539.lha / patchlib / include / patch_protos.h < prev    next >
C/C++ Source or Header  |  1996-10-13  |  2KB  |  53 lines

  1. /* patch_protos.h - prototypes for patch.library functions */
  2. /* (C) Copyright 1993-96 Stefan Fuchs                      */
  3.  
  4. #ifndef CLIB_PATCH_H
  5. #define CLIB_PATCH_H
  6.  
  7.  
  8. #ifndef  EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef  INTUITION_INTUITION_H
  12. #include <intuition/intuition.h>
  13. #endif
  14. #ifndef  UTILITY_TAGITEM_H
  15. #include <utility/tagitem.h>
  16. #endif
  17.  
  18.  
  19. struct Patch *InstallPatch( struct NewPatch *newPatch );
  20. ULONG WaitRemovePatch( struct Patch *patch );
  21. ULONG RemovePatch( struct Patch *patch );
  22. struct Patch *FindPatch( UBYTE *name );
  23. /*--------- Functions in V2 and higher -----------------------------------*/
  24. struct Patch *InstallPatchTagsA( unsigned long (*newFunction)(),
  25.                   long funcOffset, struct TagItem *taglist );
  26. struct Patch *InstallPatchTags( unsigned long (*newFunction)(),
  27.                   long funcOffset, Tag tag1, ... );
  28. ULONG RemovePatchTagsA( struct Patch *patch, struct TagItem *taglist );
  29. ULONG RemovePatchTags( struct Patch *patch, Tag tag1, ... );
  30. /*--------- Functions in V3 and higher -----------------------------------*/
  31. APTR FindPatchTagsA( struct TagItem *taglist );
  32. APTR FindPatchTags( Tag tag1, ... );
  33. ULONG SetPatchA( struct Patch *patch, struct TagItem *taglist );
  34. ULONG SetPatch( struct Patch *patch, Tag tag1, ... );
  35. ULONG GetPatchA( struct Patch *patch, struct TagItem *taglist );
  36. ULONG GetPatch( struct Patch *patch, Tag tag1, ... );
  37. void PatchFreeVec( APTR memoryBlock );
  38. /*--------- Functions in V4 and higher -----------------------------------*/
  39. ULONG RemovePatchProjectA( APTR project, struct TagItem *taglist );
  40. ULONG RemovePatchProject( APTR project, Tag tag1, ... );
  41. APTR CreatePatchProjectA( STRPTR, struct TagItem *taglist);
  42. APTR CreatePatchProject( STRPTR, Tag tag1, ...);
  43. /*--------- Functions in V5 and higher -----------------------------------*/
  44. ULONG SetPatchProjectA( APTR project, struct TagItem *taglist);
  45. ULONG SetPatchProject( APTR project, Tag tag1, ...);
  46. ULONG AddPatchNotifyA( struct MsgPort *msgport, struct TagItem *taglist);
  47. ULONG AddPatchNotify( struct MsgPort *msgport, Tag tag1, ...);
  48. ULONG RemPatchNotifyA( struct MsgPort *msgport, struct TagItem *taglist);
  49. ULONG RemPatchNotify( struct MsgPort *msgport, Tag tag1, ...);
  50. APTR PatchAlloc(ULONG type);
  51.  
  52. #endif  /* CLIB_PATCH_H */
  53.